package com.example.work1month12begin.work.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("country")
@ApiModel(value = "国家",description = "国家实体类，对应数据库country")
public class Country {
    @TableId
    @ApiModelProperty(value = "国家编号",dataType = "int",example = "1")
    private Integer cid;

    @TableField("cname")
    @ApiModelProperty(value = "国家名",dataType = "string",example = "中国")
    private String cname;
}
